#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int power(int n, int k)
{
	if (k == 0)
	{
		return 1;
	}
	else if (k < 0)
	{
		return -1;
	}
	else if (k == 1)
	{
		return n;
	}
	else
	{
		return n * power(n,k - 1);
	}
}

int main()
{
	int n = 0;
	int k = 0;
	int ret = 0;
	scanf("%d%*c%d",&n,&k);
	ret = power(n, k);
	if (ret != -1)
	{
		printf("%d的%d次方=%d\n", n, k, ret);
	}
	return 0;

}